#include <iostream>

#include <array>

using std::cout;
using std::endl;


int main()
{
	{
		std::array<int, 10> a;
		a = { 1,4, 5, 7, 9, 2, 4, 7 };
		cout << "Array Size: " << a.size() << ",\nArray Data: ";
		for (auto i : a)
		{
			cout << i << "  ";
		}
		cout << endl;

		a.fill(0);
		for (auto i : a)
		{
			cout << i << "  ";
		}
		cout << endl;
	}
	cout << endl;

	{
		std::array<double, 4> a{ 1, 2, 3, 4 };
		size_t size = std::tuple_size<decltype(a)>();
		std::tuple_element<0, decltype(a)>::type b = 0.0;
		double c = std::get<2>(a); //c = a[2]

	}
	cout << endl;

	return 0;
}




